#include "List.h"

int main()
{
	List* p = NULL;
	PushBack(&p, 1);
	PushBack(&p, 2);
	PushBack(&p, 3);
	PushBack(&p, 4);
	PushBack(&p, 5);
	Print(p);

	PopBack(&p);
	PopBack(&p);
	Print(p);

	PushFront(&p, 0);
	PushFront(&p, -1);
	PushFront(&p, -2);
	Print(p);

	PopFront(&p);
	PopFront(&p);
	Print(p);

	List* pos = Find(p, 3);
	if (pos != NULL)
	{
		Insert(pos, 100);
		Print(p);
		Insert(pos, 1000);
		Print(p);
		Erase(pos);
		Print(p);
	}

	Destory(p);
	return 0;
}